<?php
/**
 * @author by bilee.
 * 时间: 17/1/10 下午10:53
 * 微信小程序
 */
namespace Weixin\Controller;

use Think\Controller;

class WeixinSmallController extends Controller{

    //微信小程序登录
    function dologin(){
        $url = 'https://api.weixin.qq.com/sns/jscode2session?appid='.C('WEIXIN_SMALL_APPID').'&secret='.C('WEIXIN_SMALL_APPSECRET').'&js_code='.I('code').'&grant_type=authorization_code';
        echo httpGet($url);
    }


}